package com.example.demo.bean;

import lombok.Data;

public enum SeckillStatus {
    seckillOver("秒杀已结束",0),seckillNotStart("秒杀未开始",1),//秒杀已结束
    seckilling("秒杀进行中",3);//秒杀进行中;

    private String name;//秒杀已结束
    private Integer code;//秒杀已结束

    SeckillStatus(String name,Integer code){
        this.name=name;
        this.code=code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
